package com.lcredu.service;

import com.lcredu.ThreadLocalTest;
import com.lcredu.dao.T2DAO;

/**
 * @author 黎长容
 * @date 2025-07-04 15:30
 */
public class T1Service {
    public void update(){
        String name = Thread.currentThread().getName();
        Object object = ThreadLocalTest.threadLocal01.get();
        System.out.println("在 T1Service 的 update() 线程 name= " +
                name +"取出了一只dog"+object);
        new T2DAO().update();
    }
}
